package utilities;

import enumeration.Operation;

public class Help {

	/**
	 * This will output a menu allowing the user to choose a help topic.
	 * 
	 * @return string
	 */
	public static void help(Operation param) {

		switch (param) {
			case ANALYZE:
				System.out.println();
				System.out.println("Analyze: Checks for multiple patterns to match within assertions and can break it up into individual assertions");
				System.out.println("Example: xjm -f \"filename\"");
				System.out.println("[Optional] -o \"output file\"");
				System.out.println();
				break;
			case CHANGE_JMETER_ATTRIBUTE:
				System.out.println();
				System.out.println("Change Attribute: Can change an attribute within a node to userinput");
				System.out.println("Example: xjm -f \"filename\" -t \"testname\" -a \"attribute\" -u \"changes\"");
				System.out.println("[Optional] -o \"output file\"");
				System.out.println();
				break;
			case CHANGE_JMETER_NODE:
				System.out.println();
				System.out.println("Change Node: Can change a node with an xml file");
				System.out.println("Example: xjm -f \"filename\" -t \"testname\" -x \"xml file\"");
				System.out.println("[Optional] -o \"output file\" ");
				System.out.println();
				break;
			case SWAP_JMETER_NODE:
				System.out.println();
				System.out.println("Swap Node: Can swap a node with a node from another jmx file");
				System.out.println("Example: xjm -f \"filename\" -t \"testname\" -x \"xml file\" -xt \"testname from xml\"");
				System.out.println("[Optional] -o \"output file\"");
				System.out.println();
				break;
			default:
				System.out.println();
				System.out.println("To Swap, Change Node, Change Attribute or Analyze do as follows:");
				System.out.println("-help/-h/-? followed by Swap, Change, Attribute or Analyze");
				System.out.println();
				break;
		}
	}
}
